package com.zuoye;

public class Demo9 {
    public static void main(String[] args) {

        double num1 = 1.5;

        double num2 = 1.9;

        double num3 = 2.5;

        double min = num1 < num2 ? (num1 < num3 ? num1 : num3) : (num2 < num3 ? num2 : num3);

        System.out.println("最小值为：" + min);
    }
}
